package cn.sdormitory.basedata.service;

import cn.sdormitory.basedata.entity.ClassDevice;
import cn.sdormitory.basedata.entity.BDevice;
import cn.sdormitory.basedata.entity.DorDevice;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;
import java.util.Map;

/**
 * @author: lx
 * @date: 2023/8/5 8:45
 * @description:
 */
public interface BDeviceService {

    IPage<BDevice> findPageList(BDevice device);

    int addOrUpdate(BDevice device);

    BDevice findById(Long id);

    int bindClass(ClassDevice classDevice);

    int unbindClass(Long deviceId);

    void getDeviceInfoFromIotSys(List<Map<String, String>> deviceList);

    int bindDor(DorDevice dorDevice);

    int unbindDor(Long deviceId);

    boolean delete(Map<String, String> map);
}
